package com.pwrd.minispring.service.impl;

import com.pwrd.minispring.dao.impl.DaoImpl;
import com.pwrd.minispring.spring.annotation.ServiceInject;
import com.pwrd.minispring.spring.service.Service;

/**
 * @Auther syc.
 * @Date 2016/10/26 14:30.
 */
public class PayService extends Service {

    @ServiceInject
    UserService userService;

    @Override
    public <T> void add(T obj) {
        userService.setDao(new DaoImpl());
        userService.add(new String("obj from PayService :" + obj.toString()));
    }
}
